package lanqiaobei;

import java.util.Scanner;

public class zuishaofama {
public static void main(String[] args) {
	Scanner scanner = new Scanner(System.in);
	 int n = scanner.nextInt();
     int count = 1;
     int i;
     for ( i = 1; ; i++) {
		if(((Math.pow(3, i)-1)/2)>=n) {
			System.out.println(i);
			break;
		}
	}
     
}
}
